home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1998 May / macformat-063.iso / mac / Shareware Plus / Communications / Hyperize2 / HOW-TO-USE next >
Encoding:
Text File  |  1997-12-29  |  11.7 KB  |  289 lines  |  [TEXT/ttxt]

  1.  
  2. Hyperize2
  3.  
  4. WHAT'S NEW
  5.  
  6. If you've used Hyperize before, you'll notice the following new features:
  7.  
  8.     Hyperize2 runs native on a PowerPC.
  9.  
  10.     Hyperize2 can now create whole pages, frames, or fragments of HTML-encoded
  11.     text. (The difference is in the enclosing tags, which are none in the case
  12.     of fragments.)
  13.     
  14.     Hyperize2 can now read from and/or write to the Clipboard. In combination
  15.     with the ability to create fragments, this makes it easy to update HTML
  16.     files without having to re-hyperize from scratch (possibly losing all the
  17.     extra HTML you've added manually).
  18.     
  19.     Hyperize2 can be told to include a standard header and/or footer in its
  20.     output. These are HTML files called respectively 'Hyperize Header' and
  21.     'Hyperize Footer' which live in the same folder as the application.
  22.     
  23.     Hyperize2 is much smarter than its predecessor about indentation, and is
  24.     somewhat smarter about columnar layouts. It can, for instance, reproduce a
  25.     program listing very accurately, and it deals reasonably gracefully with
  26.     columns in general text. (Aligned text within lines, however, only looks
  27.     good if the browser is set to use a fixed-space font. Also be aware that
  28.     there's no way I can know how many spaces the browser will use to implement
  29.     the <ul> tag, which is used for indentation.)
  30.     
  31.     Hyperize2 has two new formatting options. They concern whether leading
  32.     white space on a line is intended to introduce new paragraphs or new
  33.     column-aligned list items, and the distance between column stops.
  34.     
  35.     Hyperize2 stores its default preferences in a preferences file (instead of
  36.     in the application itself). It also allows the user to create secondary
  37.     settings files for particular types of task, such as hyperizing
  38.     justified text fragments or whole program listings. These files can be
  39.     opened from within the application or double-clicked to launch the
  40.     application with their settings.
  41.     
  42.     Hyperize2 lets you browse for documents and applications when setting the
  43.     File Creator for its output files. It also allows you to choose an output
  44.     file name and location that's different from the default.
  45.     
  46.  
  47. GETTING STARTED
  48.  
  49. To get started, just place the Hyperize2 folder anywhere. Make aliases if you
  50. like. Drop text files on Hyperize2 or its alias and they will get hyperized.
  51. The HTML files will appear in the same folder with the names of their
  52. originals plus '.html'. After the last file is hyperized, the application
  53. quits. You can then open your new HTML files in a browser to see what they look
  54. like. (If your browser is Netscape Navigator, you can just double-click on the
  55. HTML files.)
  56.  
  57. Alternatively, double-click Hyperize2. A splash screen will appear and it will
  58. wait for a little over a second. (It will go away sooner if you click the mouse
  59. or press a key.) Choose Hyperize File from the File menu to hyperize a file, or
  60. Hyperize Clipboard to hyperize the contents of the Clipboard (it must contain
  61. text). Choose Preferences from the File menu to familiarize yourself with the
  62. preferences dialogue. Dismiss it by pressing Cancel. (When you're ready, come
  63. back and read about setting preferences.) Choose Quit from the File menu when
  64. you're done.
  65.  
  66. The first time Hyperize2 is run, it will create a file called 'Hyperize
  67. Preferences' in the 'Preferences' folder of your system folder.
  68.  
  69. If you already have Hyperize 1.1, there is no need to do anything special to
  70. disinstall it. Hyperize2 uses a different creator signature, so there is no
  71. conflict.
  72.  
  73.  
  74. SETTING PREFERENCES
  75.  
  76. To set preferences, choose Preferences... from the File menu or press
  77. Command-=. The following dialog appears:
  78.  
  79.  
  80.     Settings Files Control
  81.     
  82.     The top part of the dialog lets you create and open custom settings files.
  83.     Press Save... to create a custom file with the settings currently shown in
  84.     the dialog. Use Open... to change the settings to those stored in some
  85.     previously created settings file. Use Revert to restore the settings to
  86.     those contained in the 'Hyperize Preferences' folder. (To restore the
  87.     original 'factory' settings, drag 'Hyperize Preferences' in 'Preferences'
  88.     in your system folder to the trash.)
  89.     
  90.     Once you have created a settings file, you can launch Hyperize2 with those
  91.     settings by dropping the file on Hyperize2 or by double-clicking it. You
  92.     can then open documents interactively or just drop them on Hyperize2's
  93.     dimmed icon. You can also include a settings files in a multiple file drop.
  94.     New settings take effect at the time each settings file is loaded, so in
  95.     this case it makes a difference what order you select the files in.
  96.     
  97.     Formatting and Target Control
  98.     
  99.     The three buttons on the right of the middle panel control the kind of
  100.     enclosing tags that Hyperize2 generates. Specifically:
  101.     
  102.         Page
  103.             <html>
  104.             <head>
  105.             <title>
  106.                 Your document's title
  107.             </title>
  108.             </head>
  109.             <body>
  110.                 Your hyperized document
  111.             </body>
  112.             </html>
  113.             
  114.         Frame
  115.             <body>
  116.                 Your hyperized document
  117.             </body>
  118.             
  119.         Fragment
  120.                 Your hyperized document
  121.                 
  122.                 
  123.     The checkboxes on the left of the middle panel control the amount and type
  124.     of formatting that Hyperize performs. Specifically:
  125.     
  126.         Format the text
  127.         
  128.             If this is unchecked, Hyperize2 makes no special interpretation of
  129.             spaces, tabs and line breaks in your document. Your document is
  130.             copied through unchanged, except that characters that are special
  131.             to HTML or the Macintosh are translated into HTML-acceptable
  132.             equivalents.
  133.  
  134.             If this is checked, Hyperize2 additionally pays special attention
  135.             to spaces and tabs (particularly at the start of a line) and to line
  136.             breaks. It always assumes that blank lines separate paragraphs and
  137.             that leading white space separates lines. It always collapses runs of
  138.             white space and/or line breaks and interprets the run as a unit, i
  139.             ways depending on further settings. 
  140.     
  141.         Paragraphs contain hard returns
  142.         
  143.             If this is unchecked, Hyperize2 always respects physical line
  144.             breaks in the document, and never wraps together lines separated
  145.             only by an end-of-line character.
  146.             
  147.             If this is checked, Hyperize2 wraps with the previous line a line
  148.             that is separated from it by only one end-of-line character.
  149.             However it does not do this if the second line begins with white
  150.             space. Runs of end-of-line characters, even with intervening hidden
  151.             white space characters, are collapsed into a single HTML paragraph
  152.             tag.
  153.             
  154.         Paragraph starts are indented
  155.         
  156.             If this is unchecked, Hyperize2 assumes that white space at the
  157.             beginning of a line indicates column alignment. Hyperize2
  158.             calculates the amount of white space indicated by the combination
  159.             of spaces and tabs, and if that amount is greater than it was for
  160.             the previous line, indents the line by a certain amount (how much
  161.             depends on your browser). Hyperize2 keeps track of degrees of
  162.             indent, and if a line has less leading white space than the current
  163.             indent level requires, it adjust the indent level to the
  164.             closest-matching preceding indent level. In this mode, tabs in the
  165.             middle of a line are also expanded into a series of 'non-breaking
  166.             spaces' sufficient to align the next word to the nearest
  167.             appropriate tab stop.
  168.             
  169.             
  170.             If this is checked, Hyperize2 assumes that white space at the
  171.             beginning of a line indicates the start of a new paragraph. The
  172.             first line of the paragraph is indented and remaining lines are
  173.             flush left. Tabs in the middle of lines are expanded as usual.
  174.             
  175.         Tabs every x spaces
  176.         
  177.             This is a pop-up menu where you can set the distribution of tab
  178.             stops (they must, however, be evenly spaced). This setting affects
  179.             mainly the calculation of white space involving both spaces and
  180.             tabs at the beginnings of lines, and the expansion of tabs in the
  181.             middle of lines. Very often it does not matter. The most common
  182.             settings are 4, 6 and 8.
  183.             
  184.         Include header and footer
  185.         
  186.             If this is checked, Hyperize2 will precede your document by the
  187.             contents of a file called 'Hyperize Header' in Hyperize2's folder,
  188.             if it is present, and will likewise follow your document by the
  189.             contents of 'Hyperize Footer' in the same place, if that is
  190.             present. The contents of these documents are not hyperized, but are
  191.             assumed to contain valid HTML created previously by Hyperize2 or in
  192.             some other way.
  193.             
  194.     Miscellaneous Controls
  195.     
  196.         Output to Clipboard
  197.         
  198.             If this is checked, output is placed on the Clipboard, ready to be
  199.             pasted into an HTML document. For this purpose, Hyperize2 has to
  200.             have enough memory to contain the text on the Clipboard. The
  201.             default memory size is adequate for about 32Kb. If you need much
  202.             more, you can increase the application's partition by selecting
  203.             Hyperize2 (with a single click) and choosing Get Info... from the
  204.             Finder's File menu. Increase the number in Preferred Size (at the
  205.             bottom right) and click the close box.
  206.             
  207.         Prompt for HTML file name
  208.         
  209.             By default, the output, if it is not the Clipboard, is a file in
  210.             the same folder as the original and with the original's name
  211.             followed by '.html'. If that would be too long, or if you have
  212.             checked this box, you will be prompted for a file name and location
  213.             instead.
  214.             
  215.         Creator: <the name of some program>
  216.         
  217.             This indicates the 'creator' of files produced by Hyperize2. The
  218.             'creator' is the application that the Finder will call if you
  219.             double-click on the file. The obvious choices are your favourite
  220.             browser, if you want to see the results immediately, or your
  221.             favourite text editor or word processor, if you want to manually
  222.             add more HTML tags.
  223.             
  224.             The default creator is SimpleText/TeachText. To change the creator,
  225.             press Browse. You will be able to explore your file system, seeing
  226.             only disks, folders, text files, and applications. Choose a text
  227.             file belonging to the application of your choice, or the
  228.             application itself.
  229.             
  230.  
  231. ADVANCED CUSTOMIZATIONS
  232.  
  233. This section is only for people who are familiar with using a Resource Editor
  234. such as ResEdit. The information is presented in such a way that you will not
  235. know how to use it if you are not so familiar.
  236.  
  237.     STR# 129
  238.         The translations for characters whose ASCII code is greater than 127,
  239.         in order with the first string translating character 128 and the last
  240.         string translating character 255.
  241.         
  242.     STR# 130
  243.         The name of the default preferences file in the 'Preferences' folder of
  244.         the system folder. Originally 'Hyperize Preferences'.
  245.         
  246.     STR# 131
  247.         The 'name' of the Clipboard, to be used in progress messages and as the
  248.         base for a file created from the Clipbooard as input. Originally
  249.         'Clipboard'.
  250.         
  251.     STR# 132
  252.         The names of the included header and footer files, which must live in
  253.         the same folder as the application. Originally 'Hyperize Header' and
  254.         'Hyperize Footer'.
  255.         
  256.     STR# 133
  257.         The extension added to the name of the input file to create the name
  258.         for the output file. Originally '.html'.
  259.         
  260.     Pref 129
  261.         The 'factory' preferences record. The format is:
  262.         
  263.             creator        (4 bytes)        the creator code for output files
  264.             htmltype    (2 bytes)        whether page, frame or fragment:
  265.                                             0 = page
  266.                                             1 = frame
  267.                                             2 = fragment
  268.             linelen        (2 bytes)        optimal length of output lines
  269.             tabstops    (2 bytes)        spacing of tab stops
  270.             formatting    (1 byte)        0 or 1, whether formatting checked
  271.             hardreturns    (1 byte)        0 or 1, whether hard returns checked
  272.             parindents    (1 byte)        0 or 1, whether indented paras checked
  273.             including    (1 byte)        0 or 1, whether including header/footer
  274.             toclip        (1 byte)        0 or 1, whether to Clipboard checked
  275.             prompting    (1 byte)        0 or 1, whether prompting for filename 
  276.             reserved    (2 bytes)
  277.  
  278. Additionally, all text that appears in Hyperize — whether in menus, alerts or
  279. dialogues — is stored in various resources and so can be translated to produce
  280. a localized version. The only exception is the contents of the About... box.
  281.  
  282.  
  283. © Jason Johnston 1995-7
  284.  
  285. mailto:jcj@mail.usyd.edu.au
  286. http://www-personal.usyd.edu.au/~jcj
  287.  
  288.  
  289.